package com.example.lenovo.newsdemo;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class newsFragment extends Fragment {
   // private TextView text;


//    public static android.support.v4.app.Fragment newInstance(String tag) {
//
//        Bundle args = new Bundle();
//        args.putString("tag",tag);
//        newsFragment fragment = new newsFragment();
//        fragment.setArguments(args);
//        return fragment;
//    }
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {

        View view = inflater.inflate(R.layout.fragment_news,container,false);
        //text = view.findViewById(R.id.text);
        return view;
    }

 //   @Override
//    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
//        super.onActivityCreated(savedInstanceState);
//        Bundle arguments = getArguments();
//        text.setText(arguments.getString("tag"));
//    }
}
